<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">


        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>

                <tr><td class="tt">工资月份</td><td id="month" class="tv"></td><td class="tt">工资标题</td><td id="title" class="tv"></td></tr>
                <tr><td class="tt">实发工资合计(元)</td><td id="money" class="tv"></td><td class="tt">计划发放日期</td><td id="jidt" class="tv"></td></tr>

                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div class="table-box tablenes">
            <script type="text/html" id="toolbarDemo">工资明细</script>
            <div class="tableShow">
                <table id="datalist" lay-filter="datalist"></table>
            </div>
        </div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_wagyuan_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;

                $("#month").text(data.month);
                $("#title").text(data.title);
                $("#money").text(parseFormatNum(data.money));
                $("#jidt").text(data.jidt);
                $("#explain").text(data.explain);



                var mytableList = table.render({
                    elem: "#datalist",data:res.data.list, toolbar: '#toolbarDemo', page: false
                    ,limit:TabInitShow.limit,soulSort: TabInitShow.soulSort,method: TabInitShow.method, overflow: TabInitShow.overflow
                    ,defaultToolbar: TabInitShow.defaultToolbar,filter: TabInitShow.filter ,text: TabInitShow.text
                    ,request: TabInitShow.request,response: TabInitShow.response,contextmenu:get_table_contextmenu(soulTable)
                    , cols: [[
                        {type:'numbers',title:'序号'}
                        ,{field: 'name', title: '姓名'}
                        ,{field: 'deptname', title: '部门'}
                        ,{field: 'gangname', title: '岗位'}
                        ,{field: 'zhuang', title: '状态'}
                        ,{field: 'rudt', title: '入职时间'}
                        ,{field: 'yingday', title: '应出勤天数'}
                        ,{field: 'shiday', title: '实际出勤天数'}
                        ,{field: 'dayrate', title: '出勤率'}
                        ,{field: 'siage', title: '司龄'}

                        ,{field:'jibenshi',title:'基本工资',totalRow: true,templet: function(d){return parseFormatNum(d.jibenshi);}}
                        ,{field:'gangshi',title:'岗位绩效',totalRow: true,templet: function(d){return parseFormatNum(d.gangshi);}}
                        ,{field:'guanshi',title:'管理绩效',totalRow: true,templet: function(d){return parseFormatNum(d.guanshi);}}
                        ,{field:'xinshi',title:'薪资标准实发',totalRow: true,templet: function(d){return parseFormatNum(d.xinshi);}}

                        ,{field:'sibushi',title:'司龄补贴',totalRow: true,templet: function(d){return parseFormatNum(d.sibushi);}}
                        ,{field:'zhushi',title:'住房补贴',totalRow: true,templet: function(d){return parseFormatNum(d.zhushi);}}
                        ,{field:'xueshi',title:'学历补贴',totalRow: true,templet: function(d){return parseFormatNum(d.xueshi);}}
                        ,{field:'renbu',title:'人员证书补贴',totalRow: true,templet: function(d){return parseFormatNum(d.renbu);}}
                        ,{field:'canshi',title:'餐费补贴',totalRow: true,templet: function(d){return parseFormatNum(d.canshi);}}
                        ,{field:'fabu',title:'法定代表人补贴',totalRow: true,templet: function(d){return parseFormatNum(d.fabu);}}
                        ,{field:'quanbu',title:'全勤补贴',totalRow: true,templet: function(d){return parseFormatNum(d.quanbu);}}
                        ,{field:'jiang',title:'奖金',totalRow: true,templet: function(d){return parseFormatNum(d.jiang);}}
                        ,{field:'yingfee',title:'应发小计',totalRow: true,templet: function(d){return parseFormatNum(d.yingfee);}}
                        ,{field:'lou',title:'漏签',totalRow: true,templet: function(d){return parseFormatNum(d.lou);}}
                        ,{field:'chi',title:'迟到',totalRow: true,templet: function(d){return parseFormatNum(d.chi);}}
                        ,{field:'kuang',title:'旷工',totalRow: true,templet: function(d){return parseFormatNum(d.kuang);}}
                        ,{field:'qikou',title:'其他',totalRow: true,templet: function(d){return parseFormatNum(d.qikou);}}
                        ,{field:'koufee',title:'扣除小计',totalRow: true,templet: function(d){return parseFormatNum(d.koufee);}}
                        ,{field:'yang',title:'养老',totalRow: true,templet: function(d){return parseFormatNum(d.yang);}}
                        ,{field:'liao',title:'医疗',totalRow: true,templet: function(d){return parseFormatNum(d.liao);}}
                        ,{field:'shi',title:'失业',totalRow: true,templet: function(d){return parseFormatNum(d.shi);}}
                        ,{field:'geshui',title:'个税',totalRow: true,templet: function(d){return parseFormatNum(d.geshui);}}
                        ,{field:'zhuankou',title:'专项扣除小计',totalRow: true,templet: function(d){return parseFormatNum(d.zhuankou);}}
                        ,{field:'gekou',title:'个人工资合计',totalRow: true,templet: function(d){return parseFormatNum(d.gekou);}}
                        ,{field:'shanbu',title:'赡养补贴',totalRow: true,templet: function(d){return parseFormatNum(d.shanbu);}}
                        ,{field:'yangbu',title:'抚养补贴',totalRow: true,templet: function(d){return parseFormatNum(d.yangbu);}}
                        ,{field:'jiaobu',title:'教育补贴',totalRow: true,templet: function(d){return parseFormatNum(d.jiaobu);}}
                        ,{field:'money',title:'实发工资合计',totalRow: true,templet: function(d){return parseFormatNum(d.money);}}
                        ,{field: 'explain', title: '备注'}
                    ]]
                    , done: function (res) {
                        soulTable.render(this);
                    }
                });




                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('wagyuan', param_id);
    });



</script>
</body>
</html>




